import request from '@/utils/request'



export function departmentMonthList(data) { //部门月报-列表
  return request({
    url: '/project-quality/api/deptMonthReportList/page',
    method: 'post',
    data
  })
}


export function departmentMonthAdd(data) { //部门月报-新增
  return request({
    url: '/project-quality/api/deptMonthReportList/add',
    method: 'post',
    data
  })
}


export function departmentMonthEdit(data) { //部门月报-编辑
  return request({
    url: '/project-quality/api/deptMonthReportList/edit',
    method: 'post',
    data
  })
}



export function departmentMonthDelete(id) { //部门月报-删除
  return request({
    url: '/project-quality/api/deptMonthReportList/del/' + id,
    method: 'get',
  })
}


export function departmentMonthDetails(id) { //部门月报-详情
  return request({
    url: '/project-quality/api/deptMonthReportList/' + id,
    method: 'get',
  })
}


//里层
export function departmentMonthMainList(data) { //部门月报-列表
  return request({
    url: '/project-quality/api/deptMonthReportList/deptMonthReportList',
    method: 'post',
    data
  })
}


export function departmentMonthMainAdd(data) { //部门月报-新增
  return request({
    url: '/project-quality/api/deptMonthReportList/addAll',
    method: 'post',
    data
  })
}
export function departmentMonthExport(data) { //部门月报-导出
  return request({
    url: '/project-quality/api/deptMonthReportList/export',
    responseType: 'arraybuffer',
    method: 'post',
    data
  })
}





